package com.xiaolin.sports.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xiaolin.sports.dao.WechatReceiveMessageMapper;
import com.xiaolin.sports.model.WechatReceiveMessage;
import com.xiaolin.sports.page.Page;
import com.xiaolin.sports.service.IWechatMessageService;

@Service("wechatMessageService")
public class WechatMessageServiceImpl implements IWechatMessageService {

	@Autowired
	private WechatReceiveMessageMapper wechatReceiveMessageMapper;
	
	@Override
	public int addReceiveMessage(WechatReceiveMessage message) {
		return wechatReceiveMessageMapper.insertSelective(message);
	}

	@Override
	public List<WechatReceiveMessage> selectListByPage(Page<WechatReceiveMessage> page) {
		return wechatReceiveMessageMapper.selectListByPage(page);
	}

	@Override
	public int selectCountByParam(WechatReceiveMessage message) {
		return wechatReceiveMessageMapper.selectCountByParam(message);
	}

	@Override
	public int updateByParam(WechatReceiveMessage record) {
		return wechatReceiveMessageMapper.updateByPrimaryKeySelective(record);
	}


}
